export default {
	path: '/product',
	name: 'Product',
	redirect: '/product/list',
	component: () => import('/@/layout/routerView/parent.vue'),
	meta: {
		title: '商品管理',
		isLink: '',
		isHide: false,
		isKeepAlive: true,
		isAffix: false,
		isIframe: false,
		roles: ['admin'],
		icon: 'ele-Goods',
	},
	children: [
		{
			path: '/product/list',
			name: 'ProductList',
			component: () => import('/@/views/product/list/index.vue'),
			meta: {
				title: '商品列表',
				isLink: '',
				isHide: false,
				isKeepAlive: true,
				isAffix: false,
				isIframe: false,
				roles: ['admin'],
				icon: 'iconfont icon-biaodan',
			},
		},
		{
			path: '/product/saveProduct',
			name: 'ProductAddProduct',
			component: () => import('/@/views/product/saveProduct/index.vue'),
			meta: {
				title: '添加商品',
				isLink: '',
				isHide: true,
				isKeepAlive: true,
				isAffix: false,
				isIframe: false,
				roles: ['admin'],
				icon: 'iconfont icon-biaodan',
			},
		},
		{
			path: '/product/saveProduct/edit/:id',
			name: 'ProductEditProduct',
			component: () => import('/@/views/product/saveProduct/edit.vue'),
			meta: {
				title: '编辑商品',
				isLink: '',
				isHide: true,
				isKeepAlive: true,
				isAffix: false,
				isIframe: false,
				roles: ['admin'],
				icon: 'iconfont icon-biaodan',
			},
		},
		{
			path: '/product/lapse',
			name: 'ProductLapse',
			component: () => import('/@/views/product/lapse/index.vue'),
			meta: {
				title: '已下架商品',
				isLink: '',
				isHide: false,
				isKeepAlive: true,
				isAffix: false,
				isIframe: false,
				roles: ['admin'],
				icon: 'iconfont icon-yincangmima',
			},
		},
		{
			path: '/product/service',
			name: 'ProductService',
			component: () => import('/@/views/product/service/index.vue'),
			meta: {
				title: '商品售后',
				isMenu: true,
				isLink: '',
				isHide: false,
				isKeepAlive: true,
				isAffix: false,
				isIframe: false,
				roles: ['admin'],
				icon: 'ele-Refresh',
			},
		},
		{
			path: '/product/cate',
			name: 'ProductCate',
			component: () => import('/@/views/product/cate/index.vue'),
			meta: {
				title: '商品分类',
				isMenu: true,
				isLink: '',
				isHide: false,
				isKeepAlive: true,
				isAffix: false,
				isIframe: false,
				roles: ['admin'],
				icon: 'iconfont icon-shuxing',
			},
		},
		{
			path: '/product/brand',
			name: 'ProductBrand',
			component: () => import('/@/views/product/brand/index.vue'),
			meta: {
				title: '商品品牌',
				isMenu: true,
				isLink: '',
				isHide: false,
				isKeepAlive: true,
				isAffix: false,
				isIframe: false,
				roles: ['admin'],
				icon: 'ele-CollectionTag',
			},
		},
		{
			path: '/product/labelManage',
			name: 'ProductLabelManage',
			redirect: '/product/labelManage/label',
			component: () => import('/@/layout/routerView/parent.vue'),
			// component: () => import('/@/views/product/label/index.vue'),
			meta: {
				title: '商品标签管理',
				isMenu: true,
				isLink: '',
				isHide: false,
				isKeepAlive: true,
				isAffix: false,
				isIframe: false,
				roles: ['admin'],
				icon: 'ele-Coin',
			},
			children: [
				{
					path: '/product/labelManage/label',
					name: 'ProductLabel',
					component: () => import('/@/views/product/labelManage/label/index.vue'),
					meta: {
						title: '标签列表',
						isMenu: true,
						isLink: '',
						isHide: false,
						isKeepAlive: true,
						isAffix: false,
						isIframe: false,
						roles: ['admin'],
						icon: 'ele-Document',
					},
				},
				{
					path: '/product/labelManage/labelGoods',
					name: 'ProductLabelGoods',
					component: () => import('/@/views/product/labelManage/labelGoods/index.vue'),
					meta: {
						title: '标签商品',
						isMenu: true,
						isLink: '',
						isHide: false,
						isKeepAlive: true,
						isAffix: false,
						isIframe: false,
						roles: ['admin'],
						icon: 'ele-PriceTag',
					},
				},
			],
		},
		{
			path: '/product/params',
			name: 'ProductParams',
			component: () => import('/@/views/product/params/index.vue'),
			meta: {
				title: '商品参数',
				isMenu: true,
				isLink: '',
				isHide: false,
				isKeepAlive: true,
				isAffix: false,
				isIframe: false,
				roles: ['admin'],
				icon: 'iconfont icon-zhongduancanshu',
			},
		},
		{
			path: '/product/spec',
			name: 'ProductSpec',
			component: () => import('/@/views/product/spec/index.vue'),
			meta: {
				title: '商品规格',
				isMenu: true,
				isLink: '',
				isHide: false,
				isKeepAlive: true,
				isAffix: false,
				isIframe: false,
				roles: ['admin'],
				icon: 'iconfont icon-wenducanshu-05',
			},
		},
		{
			path: '/product/support',
			name: 'ProductSupport',
			component: () => import('/@/views/product/support/index.vue'),
			meta: {
				title: '商品支持',
				isMenu: true,
				isLink: '',
				isHide: false,
				isKeepAlive: true,
				isAffix: false,
				isIframe: false,
				roles: ['admin'],
				icon: 'iconfont icon-crew_feature',
			},
		},
		{
			path: '/product/dimensions',
			name: 'ProductDimensions',
			component: () => import('/@/views/product/dimensions/index.vue'),
			meta: {
				title: '商品维度',
				isMenu: true,
				isLink: '',
				isHide: false,
				isKeepAlive: true,
				isAffix: false,
				isIframe: false,
				roles: ['admin'],
				icon: 'ele-Switch',
			},
		},
		{
			path: '/product/useHow',
			name: 'useHow',
			component: () => import('/@/views/product/useHow/index.vue'),
			meta: {
				title: '使用方法',
				isMenu: true,
				isLink: '',
				isHide: false,
				isKeepAlive: true,
				isAffix: false,
				isIframe: false,
				roles: ['admin'],
				icon: 'ele-Switch',
			},
		},
	],
};
